

from django.urls import path, re_path
from . import views
from rest_framework.urlpatterns import format_suffix_patterns



from rest_framework import routers
urlpatterns = [

]
# drf中的路由注册，只支持路由集
route = routers.SimpleRouter()
route.register('users', views.UserView)
route.register('addr', views.AddrView)
urlpatterns += route.urls


print('路由信息', route.urls)



